package com.it.myh;

import java.util.stream.Stream;

/**
 * @Description: // 类说明，在创建类时要填写
 * @ClassName: Ev_0606_01    // 类名，会自动填充
 * @Author: MYH          // 创建者
 * @Date: 2023/6/6 16:20   // 时间
 * @Version: 1.0     // 版本
 */
public class Ev_0606_01 {
    public static void main(String[] args) {
//        ArrayList<String> list = new ArrayList<>();
//        Collections.addAll(list,"a","b","c","d");
//        list.stream().forEach(s -> System.out.println(s));
        int[] arr = new int[]{1,2,3,4,5,6,7,8,9,10};
//        Arrays.stream(arr).forEach(s -> System.out.println(s));
//        System.out.println("=======================");
        Stream.of(arr).forEach(s -> System.out.println(s));
    }
}
